USE [HR_DB]
GO
if exists(select * from dbo.sysobjects where id = object_id(N'salary_standard_details')   and   OBJECTPROPERTY(id,   N'IsUserTable')   =   1)   
  drop table salary_standard_details   
-- =============================================
-- Author:杨洁(kaixuanpisces)
-- Create date: 20090807
-- Description:薪酬标准单详细信息
-- =============================================
CREATE TABLE [dbo].[salary_standard_details](
	[sdt_id] [smallint] IDENTITY(1,1) NOT NULL,
	[standard_id] [varchar](30) NULL,
	[standard_name] [varchar](60) NULL,
	[item_id] [smallint] NULL,
	[item_name] [varchar](60) NULL,
	[salary] [money] NULL,
 CONSTRAINT [salary_standard_details_PK] PRIMARY KEY CLUSTERED 
(
	[sdt_id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键，自动增长列' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard_details', @level2type=N'COLUMN',@level2name=N'sdt_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'薪酬标准单编号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard_details', @level2type=N'COLUMN',@level2name=N'standard_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'薪酬标准单名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard_details', @level2type=N'COLUMN',@level2name=N'standard_name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'薪酬项目序号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard_details', @level2type=N'COLUMN',@level2name=N'item_id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'薪酬项目名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard_details', @level2type=N'COLUMN',@level2name=N'item_name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'薪酬金额' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'salary_standard_details', @level2type=N'COLUMN',@level2name=N'salary'